package com.avic.rong.userOrder.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;

import com.avic.rong.BaseActivity;
import com.avic.rong.R;
import com.avic.rong.userOrder.adapter.MoreEvaluateListAdapter;
import com.avic.rong.userOrder.bean.AllOrderListBean;

import java.util.List;

import butterknife.BindView;
import butterknife.ButterKnife;

public class MoreEvaluateActivity extends BaseActivity {


    @BindView(R.id.more_evaluate_list)
    RecyclerView moreEvaluateList;


    @Override
    protected int getContentViewId() {
        return R.layout.activity_more_evaluate;
    }

    @Override
    protected void initView() {
        Intent intent = getIntent();
        if ((AllOrderListBean.OrderListBean) intent.getSerializableExtra("more_goods_order")==null)return;
        AllOrderListBean.OrderListBean orderListBean = (AllOrderListBean.OrderListBean) intent.getSerializableExtra("more_goods_order");

        tvTitle.setText("发表评价");
        moreEvaluateList.setLayoutManager(new LinearLayoutManager(this));
        MoreEvaluateListAdapter moreEvaluateListAdapter = new MoreEvaluateListAdapter(this,orderListBean.getItemsView());
        moreEvaluateListAdapter.setOrderListBean(orderListBean);
        moreEvaluateList.setAdapter(moreEvaluateListAdapter);
        moreEvaluateListAdapter.notifyDataSetChanged();
    }

    @Override
    protected void addListener() {

    }


}
